package io.zim.modules.ws.entity;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 心跳消息消息包
 * @author
 * @since
 */
@Data
public class HeartbeatMsg implements Serializable {
  private static final long serialVersionUID = 1L;

  /**
   * 会话类型 heartbeat、service、private、group、system
   * */
  @NotNull(message = "conversationType不能为null")
  @Pattern(regexp = "heartbeat|service|private|group|system", message = "conversationType参数错误")
  private String chatType;
}
